package com.zg.job.enm.service;

import com.zg.common.core.enm.BaseEnumService;
import com.zg.job.enm.JobStateEnum;
import org.springframework.stereotype.Component;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author Zxb
 */
@Component
public class JobStateEnumServiceImpl implements BaseEnumService {

    @Override
    public List<String> getList() {
        return Arrays.stream(JobStateEnum.values())
                .map(t -> t.name()).collect(Collectors.toList());
    }

    @Override
    public String getCode() {
        return "任务状态";
    }
}
